//
//  Calculator.h
//  链式语法
//
//  Created by 申元江 on 2018/8/20.
//  Copyright © 2018年 申元江. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Calculator : NSObject

@property (nonatomic,assign) NSInteger result;

@property (nonatomic,copy) Calculator *(^add)(NSInteger num);

@property (nonatomic,copy) Calculator *(^mins)(NSInteger num);

@property (nonatomic,copy) Calculator *(^multiply)(NSInteger num);

@property (nonatomic,copy) Calculator *(^divide)(NSInteger num);


/*
 也可以写成下面这种格式
- (Calculator * (^)(NSInteger num)) add;
- (Calculator * (^)(NSInteger num)) minus;
- (Calculator * (^)(NSInteger num)) multiply;
- (Calculator * (^)(NSInteger num)) divide;
*/


@end
